<?php
abstract class CommonScaffolder extends Scaffolder {
  
  public function __construct(Exposable  $pDataObject = NULL) {
    if (is_null($pDataObject)) $this->mIsNullData = true;
    else $this->mDataFieldsArray = $pDataObject->getFields();
  }
  
  public function getContainerTpl() {
    return file_get_contents( $this->getMyTplDir() .'container.html' );
  }
  
  
  public function getSingleEmitTpl() {
    if ($this->mIsNullData) return $this->getNoDataTpl();
	return file_get_contents( $this->getMyTplDir() .'single_emit.html' );
  }
}
